﻿<%@ Page Language="C#" MasterPageFile="~/WorkspaceMasterPage.master" AutoEventWireup="true" CodeFile="UsersManagement.aspx.cs" Inherits="Administration_UsersManagement" StylesheetTheme="RedTheme" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxControlToolkit" %>
<%@ Register Assembly="Pg.BioMedics.SDR.Web.Controls" Namespace="Pg.BioMedics.SDR.Web.Controls" TagPrefix="controls" %>

<asp:Content ID="workspaceContent" ContentPlaceHolderID="workspacePlaceHolder" Runat="Server">
    <table class="workspace">
        <tr>
            <td class="actionToolbarCell">  
                <controls:ActionToolbar ID="actionToolbar" GroupCssClass="actionToolbarGroup" 
                                           GroupHeaderCssClass="actionToolbarGroupHeader"
                                           ActionCssClass="actionToolbarAction" 
                                           ActionHolderCssClass="actionToolbarActionHolder"
                                           ActionSelectedCssClass="actionToolbarActionSelected" runat="server">
                    <Groups>
                        <controls:ActionGroup Title="Users browser" runat="server">
                            <Actions>
                                <controls:Action Title="Operators" ViewName="OperatorsView" />
                                <controls:Action Title="Administrators" ViewName="AdministratorsView" />
                                <controls:Action Title="External tools" ViewName="ExternalToolsView" />
                                <controls:Action Title="Inactive accounts" ViewName="InactiveAccountsView" />
                            </Actions>
                        </controls:ActionGroup>                                                   
                        <controls:ActionGroup Title="Management" runat="server">
                            <Actions>
                                <controls:Action Title="Register new" ViewName="RegisterView" />                                
                            </Actions>
                        </controls:ActionGroup>
                    </Groups>
                </controls:ActionToolbar>                                 
            </td>
            <td class="viewCell">  
                <controls:ViewHost ID="viewHost" ActionToolbarID="actionToolbar" UpdatePanelID="viewHostUpdatePanel" runat="server">
                    <Views>
                        <controls:View Name="OperatorsView" Src="~/Administration/Views/OperatorsView.ascx" />
                        <controls:View Name="AdministratorsView" Src="~/Administration/Views/AdministratorsView.ascx" />
                        <controls:View Name="ExternalToolsView" Src="~/Administration/Views/ExternalToolsView.ascx" />
                        <controls:View Name="InactiveAccountsView" Src="~/Administration/Views/InactiveAccountsView.ascx" />
                        <controls:View Name="PersonDetailsView" Src="~/Administration/Views/PersonDetailsView.ascx" />
                        <controls:View Name="RegisterView" Src="~/Administration/Views/RegisterView.ascx" />
                        <controls:View Name="FinishRegisterView" Src="~/Administration/Views/FinishRegisterView.ascx" />
                        <controls:View Name="SetPasswordView" Src="~/Administration/Views/SetPasswordView.ascx" />
                        <controls:View Name="ErrorView" Src="~/Views/ErrorView.ascx" />
                    </Views>
                </controls:ViewHost>                      
            </td>
        </tr>        
    </table>       
     
    <asp:UpdateProgress ID="updateProgress" runat="server">
        <ProgressTemplate>
            <div class="updateProgressHolder">
                <div class="updateProgress">
                    <asp:Image SkinID="ajaxLoader" runat="server" />
                    Loading...
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>              
</asp:Content>

